/**
 * 
 * 使用方式：
 * 1. 直接导入并使用 setMockDataArray(testData)
 * 2. 或者在需要时切换到固定数据模式
 */

import type { PayProductDict } from './types';

// 🎯 预定义的固定测试数据
const testData: PayProductDict[] = [
  {
    id: 1,
    productCode: 'WECHAT_APP',
    productName: '微信APP支付111',
    productType: 1,
    sceneType: 1,
    productDesc: '适用于移动应用内的微信支付1111',
    productIcon: 'https://tianyuankejioss.oss-cn-shanghai.aliyuncs.com/icon/wx.svg',
    officialName: '微信APP支付',
    supportPlatforms: '["iOS", "Android"]',
    requiredParams: '["appid", "mch_id", "openid"]',
    optionalParams: '["attach", "time_expire"]',
    minAmount: 1,
    maxAmount: 500000,
    supportCurrencies: '["CNY"]',
    settlementCycle: 'T+1',
    supportRefund: 1,
    supportPartialRefund: 1,
    supportQuery: 1,
    supportCancel: 1,
    supportNotify: 1,
    dailyLimit: 1000000,
    monthlyLimit: 10000000,
    singleLimit: 500000,
    timeoutMinutes: 30,
    standardRate: 0.0060,
    rateDesc: '标准费率0.6%',
    status: 1,
    sortOrder: 10,
    isRecommend: 1,
    createdBy: 'admin',
    updatedBy: 'admin',
    remark: '微信APP支付产品',
    createdTime: '2025-01-24 10:00:00',
    updatedTime: '2025-01-24 10:00:00'
  },
  {
    id: 2,
    productCode: 'ALIPAY_APP',
    productName: '支付宝APP支付',
    productType: 2,
    sceneType: 1,
    productDesc: '适用于移动应用内的支付宝支付',
    productIcon: 'https://tianyuankejioss.oss-cn-shanghai.aliyuncs.com/icon/alipay.svg',
    officialName: '支付宝APP支付',
    supportPlatforms: '["iOS", "Android"]',
    requiredParams: '["app_id", "seller_id"]',
    optionalParams: '["return_url", "notify_url"]',
    minAmount: 1,
    maxAmount: 1000000,
    supportCurrencies: '["CNY"]',
    settlementCycle: 'T+1',
    supportRefund: 1,
    supportPartialRefund: 1,
    supportQuery: 1,
    supportCancel: 1,
    supportNotify: 1,
    dailyLimit: 2000000,
    monthlyLimit: 20000000,
    singleLimit: 1000000,
    timeoutMinutes: 30,
    standardRate: 0.0055,
    rateDesc: '标准费率0.55%',
    status: 1,
    sortOrder: 20,
    isRecommend: 1,
    createdBy: 'admin',
    updatedBy: 'admin',
    remark: '支付宝APP支付产品',
    createdTime: '2025-01-24 10:05:00',
    updatedTime: '2025-01-24 10:05:00'
  },
  {
    id: 3,
    productCode: 'UNIONPAY_APP',
    productName: '银联APP支付',
    productType: 3,
    sceneType: 1,
    productDesc: '适用于移动应用内的银联支付',
    productIcon: 'https://tianyuankejioss.oss-cn-shanghai.aliyuncs.com/icon/yinlian.svg',
    officialName: '银联APP支付',
    supportPlatforms: '["iOS", "Android"]',
    requiredParams: '["merId", "version"]',
    optionalParams: '["goods_tag", "limit_pay"]',
    minAmount: 1,
    maxAmount: 500000,
    supportCurrencies: '["CNY"]',
    settlementCycle: 'T+1',
    supportRefund: 1,
    supportPartialRefund: 1,
    supportQuery: 1,
    supportCancel: 1,
    supportNotify: 1,
    dailyLimit: 1000000,
    monthlyLimit: 10000000,
    singleLimit: 500000,
    timeoutMinutes: 30,
    standardRate: 0.0065,
    rateDesc: '标准费率0.65%',
    status: 1,
    sortOrder: 30,
    isRecommend: 1,
    createdBy: 'admin',
    updatedBy: 'admin',
    remark: '银联APP支付产品',
    createdTime: '2025-01-24 10:10:00',
    updatedTime: '2025-01-24 10:10:00'
  },
  {
    id: 4,
    productCode: 'DCEP_APP',
    productName: '数字人民币APP支付',
    productType: 4,
    sceneType: 1,
    productDesc: '适用于移动应用内的数字人民币支付',
    productIcon: 'https://tianyuankejioss.oss-cn-shanghai.aliyuncs.com/icon/shuziRMB.svg',
    officialName: '数字人民币APP支付',
    supportPlatforms: '["iOS", "Android"]',
    requiredParams: '["appid", "mch_id"]',
    optionalParams: '["passback_params", "extend_params"]',
    minAmount: 1,
    maxAmount: 200000,
    supportCurrencies: '["CNY"]',
    settlementCycle: 'T+0',
    supportRefund: 1,
    supportPartialRefund: 1,
    supportQuery: 1,
    supportCancel: 1,
    supportNotify: 1,
    dailyLimit: 500000,
    monthlyLimit: 5000000,
    singleLimit: 200000,
    timeoutMinutes: 15,
    standardRate: 0.0000,
    rateDesc: '免费',
    status: 1,
    sortOrder: 40,
    isRecommend: 1,
    createdBy: 'admin',
    updatedBy: 'admin',
    remark: '数字人民币APP支付产品',
    createdTime: '2025-01-24 10:15:00',
    updatedTime: '2025-01-24 10:15:00'
  },
  {
    id: 5,
    productCode: 'APPLE_PAY',
    productName: 'Apple Pay支付',
    productType: 5,
    sceneType: 6,
    productDesc: '适用于iOS设备的Apple Pay支付',
    productIcon: 'https://tianyuankejioss.oss-cn-shanghai.aliyuncs.com/icon/其他.svg',
    officialName: 'Apple Pay支付',
    supportPlatforms: '["iOS"]',
    requiredParams: '["app_id", "seller_id", "buyer_id"]',
    optionalParams: '["attach", "time_expire"]',
    minAmount: 1,
    maxAmount: 2000000,
    supportCurrencies: '["CNY", "USD"]',
    settlementCycle: 'T+1',
    supportRefund: 1,
    supportPartialRefund: 0,
    supportQuery: 1,
    supportCancel: 0,
    supportNotify: 1,
    dailyLimit: 5000000,
    monthlyLimit: 50000000,
    singleLimit: 2000000,
    timeoutMinutes: 60,
    standardRate: 0.0080,
    rateDesc: '标准费率0.8%',
    status: 1,
    sortOrder: 50,
    isRecommend: 0,
    createdBy: 'admin',
    updatedBy: 'admin',
    remark: 'Apple Pay支付产品',
    createdTime: '2025-01-24 10:20:00',
    updatedTime: '2025-01-24 10:20:00'
  },
  {
    id: 6,
    productCode: 'WECHAT_H5',
    productName: '微信H5支付',
    productType: 1,
    sceneType: 2,
    productDesc: '适用于手机浏览器的微信支付',
    productIcon: 'https://tianyuankejioss.oss-cn-shanghai.aliyuncs.com/icon/wx.svg',
    officialName: '微信H5支付',
    supportPlatforms: '["Web", "Mobile"]',
    requiredParams: '["appid", "mch_id"]',
    optionalParams: '["return_url", "notify_url"]',
    minAmount: 1,
    maxAmount: 500000,
    supportCurrencies: '["CNY"]',
    settlementCycle: 'T+1',
    supportRefund: 1,
    supportPartialRefund: 1,
    supportQuery: 1,
    supportCancel: 1,
    supportNotify: 1,
    dailyLimit: 1000000,
    monthlyLimit: 10000000,
    singleLimit: 500000,
    timeoutMinutes: 30,
    standardRate: 0.0060,
    rateDesc: '标准费率0.6%',
    status: 0,
    sortOrder: 60,
    isRecommend: 0,
    createdBy: 'admin',
    updatedBy: 'admin',
    remark: '微信H5支付产品',
    createdTime: '2025-01-24 10:25:00',
    updatedTime: '2025-01-24 10:25:00'
  }
];

// 导出Mock数据供其他模块使用
export { testData };
export default testData;

// 这里可以添加更多自定义的 Mock 逻辑
// 例如：特殊的数据生成函数、批量操作等
